<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;

class UserMenusSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $now = \Carbon\Carbon::now();
        DB::table('user_menus')->insert(
            [
                [
                    'name' => '入户',
                    'slug' => '',
                    'url' => '',
                    'pid' => 0,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '拆迁意见-录入',
                    'slug' => 'add_opinion',
                    'url' => '/api/area/add_opinion',
                    'pid' => 1,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '拆迁意见-查看',
                    'slug' => 'opinion_list',
                    'url' => '/api/area/opinion_list',
                    'pid' => 1,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '证件上传-编辑',
                    'slug' => 'add_id_card',
                    'url' => '/api/area/add_id_card',
                    'pid' => 1,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '证件上传-查看',
                    'slug' => 'id_card_list',
                    'url' => '/api/area/id_card_list',
                    'pid' => 1,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '户口本-编辑',
                    'slug' => 'add_img_hukou',
                    'url' => '/api/img/add_img',
                    'pid' => 1,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '户口本-查看',
                    'slug' => 'img_list_hukou',
                    'url' => '/api/img/img_list',
                    'pid' => 1,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '土地证/房产证-编辑',
                    'slug' => 'add_img_tudi',
                    'url' => '/api/img/add_img',
                    'pid' => 1,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '土地证/房产证-查看',
                    'slug' => 'img_list_tudi',
                    'url' => '/api/img/img_list',
                    'pid' => 1,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '面积表-编辑',
                    'slug' => 'add_area_ruhu',
                    'url' => '/api/area/add_area',
                    'pid' => 1,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '面积表-查看',
                    'slug' => 'area_list_ruhu',
                    'url' => '/api/area/area_list',
                    'pid' => 1,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],

                [
                    'name' => '测绘',
                    'slug' => '',
                    'url' => '',
                    'pid' => 0,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '测绘-编辑',
                    'slug' => 'add_area_cehui',
                    'url' => '/api/area/add_area',
                    'pid' => 12,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '测绘-查看',
                    'slug' => 'area_list_cehui',
                    'url' => '/api/area/area_list',
                    'pid' => 12,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '评估',
                    'slug' => '',
                    'url' => '',
                    'pid' => 0,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '评估-编辑',
                    'slug' => 'add_assess',
                    'url' => '/api/assess/add_assess',
                    'pid' => 15,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '评估-查看',
                    'slug' => 'assess_list',
                    'url' => '/api/assess/assess_list',
                    'pid' => 15,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '户型',
                    'slug' => '',
                    'url' => '',
                    'pid' => 0,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '户型-编辑',
                    'slug' => 'add_house',
                    'url' => '/api/house/add_house',
                    'pid' => 18,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '户型-查看',
                    'slug' => 'house_list',
                    'url' => '/api/house/house_list',
                    'pid' => 18,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '签约',
                    'slug' => '',
                    'url' => '',
                    'pid' => 0,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '签约-编辑',
                    'slug' => 'add_img_qianyue',
                    'url' => '/api/img/add_img',
                    'pid' => 21,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '签约-查看',
                    'slug' => 'img_list_qianyue',
                    'url' => '/api/img/img_list',
                    'pid' => 21,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '签约-下载',
                    'slug' => 'download_pdf',
                    'url' => '/api/common/download_pdf',
                    'pid' => 21,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '腾房',
                    'slug' => '',
                    'url' => '',
                    'pid' => 0,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '腾房-编辑',
                    'slug' => 'add_img_tengfang',
                    'url' => '/api/img/add_img',
                    'pid' => 25,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '腾房-查看',
                    'slug' => 'img_list_tengfang',
                    'url' => '/api/img/img_list',
                    'pid' => 25,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '结算',
                    'slug' => '',
                    'url' => '',
                    'pid' => 0,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '结算-编辑',
                    'slug' => 'add_price_jiesuan',
                    'url' => '/api/price/add_price',
                    'pid' => 28,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '结算-查看',
                    'slug' => 'price_list_jiesuan',
                    'url' => '/api/price/price_list',
                    'pid' => 28,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '银行',
                    'slug' => '',
                    'url' => '',
                    'pid' => 0,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '银行-编辑',
                    'slug' => 'add_price_yinhang',
                    'url' => '/api/price/add_price',
                    'pid' => 31,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '银行-查看',
                    'slug' => 'price_list_yinhang',
                    'url' => '/api/price/price_list',
                    'pid' => 31,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '发放',
                    'slug' => '',
                    'url' => '',
                    'pid' => 0,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '发放-编辑',
                    'slug' => 'add_price_fafang',
                    'url' => '/api/price/add_price',
                    'pid' => 34,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '发放-查看',
                    'slug' => 'price_list_fafang',
                    'url' => '/api/price/price_list',
                    'pid' => 34,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '审批',
                    'slug' => '',
                    'url' => '',
                    'pid' => 0,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '审批-审批列表',
                    'slug' => 'approval_list',
                    'url' => '/api/approval/approval_list',
                    'pid' => 37,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '审批-审批操作',
                    'slug' => 'add_approval',
                    'url' => '/api/approval/add_approval',
                    'pid' => 37,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '审批-审批详情',
                    'slug' => 'approval_details',
                    'url' => '/api/approval/approval_details',
                    'pid' => 37,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],
                [
                    'name' => '打印',
                    'slug' => '',
                    'url' => '',
                    'pid' => 0,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],        
                [
                    'name' => '打印-打印',
                    'slug' => 'print',
                    'url' => '/api/print',
                    'pid' => 41,
                    'created_at' => $now,
                    'updated_at' => $now,
                ],        
            ]
        );
    }
}
